package com.moyun.zbmy.zizhou.ui.adapter.holder;

import android.content.Context;
import android.util.Log;
import android.view.View;

import com.moyun.zbmy.zizhou.R;
import com.moyun.zbmy.zizhou.beans.ScrollBean;
import com.moyun.zbmy.zizhou.ui.util.IListShowData;
import com.moyun.zbmy.zizhou.ui.widget.TextSwitcherView;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ScrollHolder extends BaseRebllionHolder {
    @BindView(R.id.textView)
    protected TextSwitcherView mADTextView1;
    Context context;
    private List<String> mList;

    public ScrollHolder(Context context, View itemView) {
        super(context, itemView);
        this.context =context;
    }

    @Override
    public void onDestory() {
        super.onDestory();
    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void setData(IListShowData iListShowData, boolean isEditing) {
        super.setData(iListShowData, isEditing);
        if (iListShowData instanceof ScrollBean) {
            mList = ((ScrollBean)iListShowData).getScrollInfos();
            mADTextView1.reset();
            mADTextView1.initText(mList);
        }



    }


}
